<?php
/**
 * @name IndexController
 * @author desktop-9bo3mgh\xiongweixing
 * @desc 默认控制器
 * @see http://www.php.net/manual/en/class.yaf-controller-abstract.php
 */


class IndexController extends BaseController
{

    /**
     * 获取app通用配置
     */
    public function getConfigAction()
    {
        $commonConfig = getCommonConfig();
        $iosVersionConfig = getAppVersion(1);
        $adVersionConfig = getAppVersion(2);
        $result['common'] = $commonConfig;
        $result['android'] = $adVersionConfig;
        $result['ios'] = $iosVersionConfig;
        $this->callback($result);
    }
}
